package org.hero.dao;

import org.apache.ibatis.annotations.Param;
import org.hero.entity.*;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by xuzhongyao on 16/8/1.
 */
@Repository
public interface NewsDao {

    List<News> findAll();
    List<Hierarchy> findAllHierarchy();
    List<StationInformation> findAllStationInformation();
    List<CommunityInformation> findAllCommunityInformation(@Param("suggest") String suggest);
    void saveHierarchy(Hierarchy hierarchy);
    void saveUploadData(UploadData uploadData);
    void saveZhanSummary(ZhanSummary zhanSummary);
    void saveQuSummary(QunSummary qunSummary);
    Integer finduploadData();
    void saveStationInformation(StationInformation stationInformation);
    void saveCommunityInformation(CommunityInformation communityInformation);
    Integer findAllNum();
    Integer findAllNumCommunityInformation();
    Integer findAllNumStationInformation();
    Integer findOnlyNumCommunityInformation(String num);
    Integer findOnlyNumStationInformation(String num);
    Integer selectNumb();
    Integer selectNumZ();
    //查询6个成功率分析
    QunSummary findSix(@Param("suggest") String suggest);
    List<ZhanSummary> finAll();
    List<UploadData> selectNum(@Param("suggest") String suggest);
    List<ZhanSummary> selectQu();
    //获得周数据
    List<QunSummary> findweek(@Param("suggest") String suggest);
    //    饼图查询
    List<QunSummary> selectCake(@Param("suggest") String suggest);
    List<QunSummary> selectAll();
    List<UploadData> selectZhu(@Param("suggest") String suggest);
    List<Hierarchy> selectName(Map map);
    Integer selectNum1(@Param("suggest") String suggest);
    Integer selectNum2(@Param("suggest") String suggest);

    Long insertTaskData(QunSummary q);

    List<CommunityInformation> selectPubPar();
    Long selectPubParTotal();

    Long delCommunity();
    Long delStation();

    List<OptionStation> getAllAreaName();
}
